package com.ruoyi.flowable.service;

import com.ruoyi.flowable.domain.WfProcessListener;
import com.ruoyi.flowable.domain.vo.WfProcessListenerVo;
import com.ruoyi.flowable.domain.bo.WfProcessListenerBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 流程监听类Service接口
 *
 * @author linziheng
 * @date 2023-10-28
 */
public interface IWfProcessListenerService {

    /**
     * 查询流程监听类
     */
    WfProcessListenerVo queryById(Long id);

    /**
     * 查询流程监听类列表
     */
    TableDataInfo<WfProcessListenerVo> queryPageList(WfProcessListenerBo bo, PageQuery pageQuery);

    /**
     * 查询流程监听类列表
     */
    List<WfProcessListenerVo> queryList(WfProcessListenerBo bo);

    /**
     * 新增流程监听类
     */
    Boolean insertByBo(WfProcessListenerBo bo);

    /**
     * 修改流程监听类
     */
    Boolean updateByBo(WfProcessListenerBo bo);

    /**
     * 校验并批量删除流程监听类信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
